//
//  XSMain.m
//  MeiLiYiChu
//
//  Created by mac on 16/2/26.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "XSMain.h"

@implementation XSMain
+(XSMain *)getXSMianScrollWithNSDiction:(NSDictionary *)dic
{
    XSMain * main =[[XSMain alloc]init];
    main.Pic_url =dic[@"pic_url"];
    
    return main;
}
+(XSMain *)getCollectionWithNSDiction:(NSDictionary *)dic
{
    XSMain * main =[[XSMain alloc]init];
    [main setValuesForKeysWithDictionary:dic];
    return main;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"pic_url"])
    {
        _Pic_url =value;
        NSLog(@"%@------",value);
    }
    if ([key isEqualToString:@"content_data"])
    {
        _sub_title =[value valueForKey:@"sub_title"];
        _title =[value valueForKey:@"title"];

    }
}

+(XSMain *)getBtnPlistWithNSDiction:(NSDictionary *)dic
{
    XSMain * main =[[XSMain alloc]init];
    
    [main setValuesForKeysWithDictionary:dic];
    return main;
}
+(XSMain *)getScrollWithNSDitcion:(NSDictionary *)dic
{
    XSMain * main =[[XSMain alloc]init];
    [main setValuesForKeysWithDictionary:dic];
    return main;
}
@end
